package com.epam.mainmenu;

import com.epam.menu.MenuItem;
import com.epam.stone.PreciousStone;

public class WeightNecklace extends MenuItem {

	public WeightNecklace() {
		super("Weight necklaces","3");
	}

	@Override
	public boolean execute() {
		System.out.println("Weight comand");
		double weight=0;
		for (PreciousStone beads:necklace){
			weight+=beads.getWeight();
		}
		System.out.println("Weight of your necklace- "+weight*5+" carat");
		return true;
	}

}
